/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package hu.arguscab.physic;

/**
 *
 * @author sharp
 */
public final class Angle {
	private float angle;

	public Angle() {
		angle = 0;
	}

	public Angle(Angle a) {
		this.angle = a.get();
	}

	public Angle(float f) {
		set(f);
	}

	public void add(float f) {
		set(angle + f);
	}

	public void set(float f) {
		if ( f > 360 )
			f -= 360;
		if ( f < 0 )
			f += 360;
		angle = f;
	}

	public float get() {
		return angle;
	}

	@Override
	public String toString() {
		return angle + " degree";
	}
}
